<?php 
require_once(dirname(__FILE__).'/MySQLDomain.php');
class CategoryDomain extends MySQLDomain {

	public static $CollectionName="category";

	public function __construct($data) {
		parent::__construct($data, CategoryDomain::$CollectionName, "categoryID");
	}

	public function getCategoryID() {
		return $this->getField("categoryID");
	}
	public function setCategoryID($categoryID) {
		$this->setField("categoryID", $categoryID);
	}

	public function getCode() {
		return $this->getField("code");
	}
	public function setCode($code) {
		$this->setField("code", $code);
	}

	public function getName() {
		return $this->getField("name");
	}
	public function setName($name) {
		$this->setField("name", $name);
	}

	public function getImagePath() {
		return $this->getField("imagePath");
	}
	public function setImagePath($imagePath) {
		$this->setField("imagePath", $imagePath);
	}

	public function getParent() {
		return $this->getField("parent");
	}
	public function setParent($parent) {
		$this->setField("parent", $parent);
	}

	public function getLevel() {
		return $this->getField("level");
	}
	public function setLevel($level) {
		$this->setField("level", $level);
	}

	public function getType() {
		return $this->getField("type");
	}
	public function setType($type) {
		$this->setField("type", $type);
	}

	public function getDisplay() {
		return $this->getField("display");
	}
	public function setDisplay($display) {
		$this->setField("display", $display);
	}

}
?>